Key Features
- Payouts are instant (real-time)
- Maximum Limit - 100000 BRL
Building an integration
Step 1: Initiate a payout request
Tazapay uses apayout object to represent your intent to initiate a payout. The payout object tracks state changes from when the payout is initiated to when the beneficiary receives the funds.
Create a payout on your server using Tazapay’s payout API with the following information:
- Payout Amount - The amount in BRL you want to transfer to the beneficiary
- Type of Payout -
Local Payment Network - Beneficiary Details
- Name
- Type -
businessorindividual - Tax ID
- CPF (for individuals)
- CNPJ (for businesses)
- Destination Details
- PIX key type
- PIX key
- Reason for Payout
- Transaction Description - Additional Description for a payout
Possible values for deposit_key_type
cpf- CPF (tax ID) for individualscnpj- CNPJ (tax ID) for businessesemail- Email Addressphone- Phonerandom- Unique String
Validations for PIX key
Ensure the following validations on your application for customer input for PIX key. Proper error handling should be implemented for cases where validations fail.| PIX Key type | Description | Validation | Example |
|---|---|---|---|
| Tax ID | The customer’s CPF (for individuals) or CNPJ (for businesses) | Must contain only numeric characters (no dashes, dots, or spaces Length: CPF (11 digits), CNPJ (14 digits) | 34960826312 |
| The customer’s email address. | Must be a valid email format. Should include an @ symbol and a domain (e.g., gmail.com). Ensure there are no spaces or invalid characters. | john.doe@me.com | |
| Phone Number | The customer’s phone number in international format | Must start with a + symbol. Followed by the country code, then the last 2 numbers of the area code (DDD), and finally the phone number. Only numeric characters allowed (no dashes, spaces, or special characters) | +5541985652123 |
| Random Key | A unique string used as a PIX key | Accept all characters, including alphanumeric, dashes (-), and special characters. Length: No restrictions. | wea478j-1O6l-03fm-t5gh-4L98er7785m2 |
Sample Request cURL
Response
id is the unique identifier you can use to track the payout.
Alternatively, Creating a beneficiary and then initiating a payout
To align with your workflow, you can also choose to split Step 1 into two steps- Step 1A: Creating a beneficiary using the Create Beneficiary endpoint
- Step 1B: Initiating a payout using the Create Payout endpoint
Step 1A: Creating a beneficiary
Tazapay uses abeneficiary object to the represent the receiver of funds of a payout. Pass the beneficiary name, type, tax ID, the PIX key type and the PIX key to /v3/beneficiary endpoint.
Possible values for deposit_key_type
cpf- CPF (tax ID) for individualscnpj- CNPJ (tax ID) for businessesemail- Email Addressphone- Phonerandom- Unique String
Validations for PIX key
Ensure the following validations on your application for customer input for PIX key. Proper error handling should be implemented for cases where validations fail.| PIX Key type | Description | Validation | Example |
|---|---|---|---|
| Tax ID | The customer’s CPF (for individuals) or CNPJ (for businesses) | Must contain only numeric characters (no dashes, dots, or spaces Length: CPF (11 digits), CNPJ (14 digits) | 34960826312 |
| The customer’s email address. | Must be a valid email format. Should include an @ symbol and a domain (e.g., gmail.com). Ensure there are no spaces or invalid characters. | john.doe@me.com | |
| Phone Number | The customer’s phone number in international format | Must start with a + symbol. Followed by the country code, then the last 2 numbers of the area code (DDD), and finally the phone number. Only numeric characters allowed (no dashes, spaces, or special characters) | +5541985652123 |
| Random Key | A unique string used as a PIX key | Accept all characters, including alphanumeric, dashes (-), and special characters. Length: No restrictions. | wea478j-1O6l-03fm-t5gh-4L98er7785m2 |
Sample Request cURL
Response
id is the unique identifier for a beneficiary. Pass this in the Create Payout API to initiate a payout.
Step 1B: Initiating a payout to the existing beneficiary
Create a payout on your server using Tazapay’s payout API with the following information:- Payout Amount and Currency - The amount you want to transfer to the beneficiary
- Beneficiary ID
- Type of Payout -
local_payment_network - Reason for Payout
- Transaction Description - Additional Description for a payout
Sample cURL
Response
id is the unique identifier for a payout. You can use this to track the payout.
Handle Payout Events
A payout is in theprocessing state after it is successfully initiated. The payout can move to one of the following three states from the processing state:
- requires_action - This is when the payout requires additional information. These additional information are typically required for reasons of regulatory compliance. Tazapay will reach out to your registered email address specifying the exact requirements and the next steps. After you have provided the necessary information, Tazapay will review and the payout can subsequently move to either
succeededorfailed. - succeeded - The beneficiary has successfully received the funds.
- failed - This is the state when the payout fails. Any funds deducted for the payout will be credited back to your account. Tazapay specifies the reason for the failure in the field
status_description
Tazapay delivers webhooks to your registered endpoint notifying you of any event of interest for the payout.
The payout will fail in case the tax_id (CPF or CNPJ) entered does not match the tax_id linked to the PIX key. It is recommended to display this message to the users on the PIX key collection screen on your application.
Simulating Payouts on Sandbox
- All payouts created on the test environment (sandbox) will automatically move to processing and eventually to succeeded.
- Payouts created with amount
200000will move to failed. - Suggested values for PIX keys
| deposit_key_type | deposit_key |
|---|---|
| cpf | 34960826312 |
| cnpj | 34960826312123 |
| first.last@tazapay.com | |
| phone | +5541985652123 |
| random | abc-123 |
